<html>

<head>
    <title>Vue文本插值</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>

<body>
    <div id="app-2">
        <span v-bind:title="message1">点我悬浮几秒查看动态显示</span><br/>
        <span v-html="message2">  
        </span><br/>
        <button type="button" v-bind:title="message3">点击查看</button>
    </div>
</body>
<script lang="ts">
    new Vue({
        el: "#app-2",
        data: {
            message1: '页面加载于 ' + new Date().toLocaleString(),
            message2: "Hello V-Html!",
            message3: "我是一个按钮"
        }
    })
</script>

</html>